IModel.Relate method

Namespace: NextDesign.Core

Description

Returns the added related instance associated with the model given at the end of the specified field of this instance.

argument

Name Type Description
fieldName string Field name
Null or empty string cannot be specified.
opposite IModel The model to associate
null cannot be specified.

Return value

Exception

Name Exception Class Description
Invalid argument ExtensionArgumentException When null is specified for opposite
When null or empty string is specified for fieldName
Field not found ExtensionFieldNotFoundException If the specified field is not found in this instance's metaclass
Illegal operation ExtensionInvalidOperationException If the model itself is a deleted model or temporary proxy
If an inoperable field is specified in the field name
-Product line feature assignment field
-System.Core tag Granted field
-owned field
Constraint violation ExtensionIllegalFieldAccessException When the model to be linked is not compatible with the specified data type of the field
When the relation violates the multiplicity constraint of the field
When the relation violates the path constraint of the field
If an invalid model is specified ExtensionInvalidModelException If the deleted model or temporary proxy is specified in the associated model